<?php

$this->form->component_1->setAttrib('class', 'components');
$this->form->component_2->setAttrib('class', 'components');
$this->form->component_3->setAttrib('class', 'components');
$this->form->component_4->setAttrib('class', 'components');
$this->form->component_5->setAttrib('class', 'components');

$this->form->setAttrib('id', 'new_product');
echo $this->form;